package com.education.platform.management.enums;

/**
 * 购买豆子的类型
 */
public enum PushTypeEnum {


    GIVE_BEANS("beans","【赠送豆子】",""),
    FEED_BACK("feedback","【反馈回复】","收到反馈回复，点击查看"),
    SEND("send","【商品已发货】","您购买的商品已发货，点击查看"),
    COURSE("course","【上新啦~】","小主人，我们的课程有新品哦，快来看看吧~"),
    ARTICLE("article","【上新啦~】","小主人，我们的文章有新品哦，快来看看吧~"),
    GOODS("goods","【上新啦~】","小主人，我们的商品有新品哦，快来看看吧~"),
    PAPER("paper","【上新啦~】","小主人，我们的试卷有新品哦，快来看看吧~"),
    COMMENT("comment","【评论入选精选啦】",""),

    ;

    private String value;
    private String title;
    private String text;

     PushTypeEnum(String value, String title,String text){
        this.value = value;
        this.title = title;
        this.text =text;

    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public  boolean eq(PushTypeEnum typeEnum){
         if(typeEnum == null){
             return false;
         }
         return value.equals(typeEnum.getValue());
    }

}
